package com.titaniume.java;

/**
 * @program: JavaSenior
 * @description:
 * @author: renfei.huang
 * @create: 2021-10-27 22:22
 */
public class Person {

    private String name;
    public int age;


    public Person() {
        System.out.println("Person()......");
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    private Person(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }


    public  void  show(){
        System.out.println("你好 我是人");
    }



    public  String  showNation(String  nation){
        System.out.println("我来自:" + nation);
        return nation;
    }
}
